function blk_list = vm_im2blk(src_img, blk_w, blk_h)
% VM_IM2BLK divide image into blocks
% TuanND
% 04/03/13

%for this verion, we assume that no padding is needed
[rows cols] = size(src_img);
num_bpr = rows/blk_h;
num_bpc = cols/blk_w;
blk_list = mat2cell(src_img, blk_h * ones(num_bpr, 1), blk_w * ones(num_bpc, 1)); 
end